# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=confclerk
pkgver=0.6.4
pkgrel=0
pkgdesc="Offline conference schedule application"
url="http://www.toastfreeware.priv.at/confclerk"
arch="all"
license="GPL-2.0-or-later"
makedepends="qt5-qtbase-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::http://git.toastfreeware.priv.at/toast/confclerk.git/snapshot/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver-4884e9f"
options="!check" # no tests

build() {
	qmake-qt5
	make all data/confclerk.1
}

package() {
	make install INSTALL_ROOT="$pkgdir"

	install -Dm644 data/confclerk.1 "$pkgdir"/usr/share/man/man1/confclerk.1
	install -Dm644 data/confclerk.desktop "$pkgdir"/usr/share/applications/confclerk.desktop
	install -Dm644 data/confclerk.svg "$pkgdir"/usr/share/icons/hicolor/scalable/apps/confclerk.svg
}

sha512sums="d118ec50e6aa0337a8e7df52c6e501efd26fbc64ba8b21ace2eba8896127e8402aa4e550e6ccea1b3c81ac650c004c5d6f4bb49054af8c87c9ce96ddf08cafaa  confclerk-0.6.4.tar.gz"
